package com.ying.service;

import com.ying.entity.StqMstrEntity;
import com.ying.repository.StqMstrDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StqMstrService {

    @Autowired
    private StqMstrDao stqMstrDao;

    public List<StqMstrEntity> findAll() {
        return stqMstrDao.findAll();
    }

    public List<StqMstrEntity> findByTicket(String ticket) {
        return stqMstrDao.findByTicket(ticket);
    }
}
